package com.feng.modules.plat.action;

import java.util.List;
import java.util.Map;

import com.feng.modules.core.action.BaseAction;
import com.feng.modules.plat.bean.PlatTree;
import com.feng.modules.plat.service.IMenuService;

public class MenuAction extends BaseAction{
    	private IMenuService menuService;
    	private PlatTree platTree;
    	
    	public PlatTree getPlatTree() {
	    return platTree;
	}

	public void setPlatTree(PlatTree platTree) {
	    this.platTree = platTree;
	}

	public IMenuService getMenuService() {
	    return menuService;
	}
	public void getMenuTree(){
    	   List<Map> list = menuService.getMenuTree(this.getParametersToMap(),this.getSession());
    	   try {
	    this.outJson(list);
	} catch (Exception e) {
	    e.printStackTrace();
	}
    	}

	public void setMenuService(IMenuService menuService) {
	    this.menuService = menuService;
	}
}
